home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
bbs
/
pad321.zip
/
GETPHONE.MEX
< prev
next >
Wrap
Text File
|
1996-08-21
|
647b
|
37 lines
#ifndef __MAX_MH
#include <max.mh>
#define __MAX_MH
#endif
#ifndef __PHONE_MH
#include "phone.mh"
#endif
#ifndef __FILE_MH
#include "file.mh"
#endif
int main () {
string: parsedPhone, token, params, newPhone;
int: fd;
parsedPhone := guessDataPhone ();
newPhone := getNewPhoneNumber (parsedPhone);
if (newPhone <> "") {
log (str_phone_entered_log + newPhone);
fd := open (phoneTempFile, IOPEN_WRITE | IOPEN_CREATE);
writeln (fd,stripNonNumericf (newPhone));
writeln (fd,newPhone);
close (fd);
return 0;
}
else {
show_file (abort_file);
};
return 0;
}